package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:11/2/16.
 * homework中 完成度
 */
public class ResultlistBean implements Parcelable {
    private String id;
    private String typename;
    private boolean isselected;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public boolean isIsselected() {
        return isselected;
    }

    public void setIsselected(boolean isselected) {
        this.isselected = isselected;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.typename);
        dest.writeByte(isselected ? (byte) 1 : (byte) 0);
    }

    public ResultlistBean() {
    }

    protected ResultlistBean(Parcel in) {
        this.id = in.readString();
        this.typename = in.readString();
        this.isselected = in.readByte() != 0;
    }

    public static final Creator<ResultlistBean> CREATOR = new Creator<ResultlistBean>() {
        public ResultlistBean createFromParcel(Parcel source) {
            return new ResultlistBean(source);
        }

        public ResultlistBean[] newArray(int size) {
            return new ResultlistBean[size];
        }
    };
}